﻿
namespace OperationPlugins.Validators
{
    public interface IValidatorInvoker
    {
        /// <summary>
        /// Invokes the validator.
        /// </summary>
        /// <param name="validator">The validator.</param>
        /// <param name="target">The object to be validated.</param>
        /// <param name="context">Provides information about and functionality for the current operation.</param>
        /// <returns>The ValidationResultMessageContainer object.</returns>
        ValidationResultMessageContainer Invoke(IValidator validator, object target, OperationContext context);
    }
}
